<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>

<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<!-- 头部 -->
<head>
	<meta charset="utf-8" />
	<title><?php echo (C("WEB_SITE_TITLE")); ?> | 后台管理系统</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="description" />
	<meta name="MobileOptimized" content="320">
	<!-- BEGIN GLOBAL MANDATORY STYLES -->          
	<link href="/yinian/Public/assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="/yinian/Public/assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>

	<!-- END GLOBAL MANDATORY STYLES -->
	<!-- BEGIN THEME STYLES --> 
	<link href="/yinian/Public/assets/css/style-metronic.css" rel="stylesheet" type="text/css"/>
	<link href="/yinian/Public/assets/css/style.css" rel="stylesheet" type="text/css"/>
	<link href="/yinian/Public/assets/css/plugins.css" rel="stylesheet" type="text/css"/>
	<link href="/yinian/Public/assets/css/style-responsive.css" rel="stylesheet" type="text/css"/>
	<link rel="stylesheet" type="text/css" href="/yinian/Public/assets/plugins/bootstrap-toastr/toastr.min.css" />
	<link href="/yinian/Public/assets/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
	<link href="/yinian/Public/assets/plugins/bootstrap-modal/css/bootstrap-modal-bs3patch.css" rel="stylesheet" />
	<link href="/yinian/Public/assets/plugins/bootstrap-modal/css/bootstrap-modal.css" rel="stylesheet" />
	<link href="/yinian/Public/assets/css/themes/<?php echo (C("SYSTEM_STYLE")); ?>.css" rel="stylesheet" type="text/css"/>
	<!-- END THEME STYLES -->
	<link rel="shortcut icon" href="favicon.ico" />
	<script src="/yinian/Public/assets/plugins/jquery-1.10.2.min.js" type="text/javascript"></script>
	<script src="/yinian/Public/assets/plugins/jquery-validation/dist/jquery.validate.min.js" type="text/javascript"></script>	
	<script src="/yinian/Public/assets/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>  
</head>
<!-- 头部 -->
<body class="page-header-fixed">
	<div class="header navbar navbar-inverse navbar-fixed-top">
		<div class="header-inner">
			<a class="navbar-brand" href="http://www.think10000.com" target="_blank">
				<img src="/yinian/Public/assets/img/logo1.png" class="img-responsive" height="20" width="100" style="position: relative;
				top: -8px;"/>
			</a>
			<a href="javascript:;" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
				<img src="/yinian/Public/assets/img/menu-toggler.png" alt="" />
			</a> 
			<div class="hor-menu hidden-sm hidden-xs">
				<ul class="nav navbar-nav">
					<?php if(is_array($__MENU__['main'])): foreach($__MENU__['main'] as $key=>$v): ?><li class="<?php echo ((isset($v["class"]) && ($v["class"] !== ""))?($v["class"]):''); ?>">
							<a href="<?php echo (u($v["url"])); ?>"><?php echo ($v["title"]); ?></a>
							<span class="selected"></span>
						</li><?php endforeach; endif; ?>
				</ul>
			</div>

			<ul class="nav navbar-nav pull-right">
				<li><a href="<?php echo U('Home/Index/index');?>" style="padding:13px" target="_blank">网站首页</a></li>
				<li class="dropdown user" style="padding-top:5px">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
						<span class="username"><?php echo (session('username')); ?></span>
						<i class="icon-angle-down"></i>
					</a>
					<ul class="dropdown-menu">
						<li><a href="<?php echo U('User/userinfo');?>"><i class="icon-user"></i> 修改昵称 </a>
						</li>
						<li><a href="<?php echo U('User/updatepwd');?>"><i class="icon-key"></i> 修改密码 </a></li>
						<li><a href="<?php echo U('Public/logout');?>"><i class="icon-remove-sign"></i> 登 出 </a>
						</li>
					</ul>
				</li>
			</ul>
		</div>
	</div>
	<div class="clearfix"></div>
	
	<div class="page-container">
		
			<div class="page-sidebar navbar-collapse collapse">  
				<ul class="page-sidebar-menu">
					<li>
						<div class="sidebar-toggler hidden-phone"></div>
					</li>
					<li>
						<form class="sidebar-search" action="" method="post">
							<div class="form-container">
								<div class="input-box">
									<a href="javascript:;" class="remove"></a>
									<input type="text" placeholder="搜索..."/>
									<input type="button" class="submit" value=" "/>
								</div>
							</div>
						</form>
					</li>
					<?php if(is_array($__MENU__["child"])): $i = 0; $__LIST__ = $__MENU__["child"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub_menu): $mod = ($i % 2 );++$i;?><!-- 子导航 -->
						<?php if(!empty($sub_menu)): if(!empty($key)): ?><li class="">
									<a href="javascript:;">
										<span class="title"><?php echo ($key); ?></span>
										<i class="icon-angle-down"></i> 
									</a>
									<ul class="sub-menu">
										<?php if(is_array($sub_menu)): $i = 0; $__LIST__ = $sub_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i;?><li>
												<a href="<?php echo (u($menu["url"])); ?>"><?php echo ($menu["title"]); ?></a>
											</li><?php endforeach; endif; else: echo "" ;endif; ?>
									</ul>
								</li><?php endif; endif; ?>
						<!-- /子导航 --><?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
			</div>
		

		<div class="page-content">
			
	<div class="row">
		<div class="col-md-12">
			<!-- BEGIN EXAMPLE TABLE PORTLET-->
			<div class="portlet-body" id="cont">
				<div class="table-toolbar">
					<div class="btn-group" style="float:left">
						<a href="<?php echo U('add');?>" class="btn green">
							新 增 
						</a>
						<a class="btn btn-danger" style="margin-left:5px;">
							删 除 
						</a>
					</div>
					<div style="float:right">
						<label>
							<form class="form-inline pull-right" action="" method="post">
								<div class="input-group input-medium">
									<input class="form-control" type="text" placeholder="请输入关键字" name="sinfo">
									<span class="input-group-btn">
										<button class="btn green" type="submit">
											<i class="icon-search"></i>
										</button>
									</span>
								</div>
							</form>
						</label>
					</div>
				</div>

				<div class="clearfix"></div>

				<table class="table table-striped table-bordered table-hover" id="checkboxtable">
					<thead>
						<tr>
							<th class="table-checkbox" width="3%"><input type="checkbox" name="select-all" class="group-checkable" data-set="#checkboxtable .checkboxes"/></th>
							<th>ID</th>
							<th>名称</th>
							<th>URL</th>
							<th>排序</th>
							<th>打开方式</th>
							<th>隐藏</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<?php if($list): if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="odd gradeX">
									<td><input type="checkbox" class="checkboxes" value="1"/></td>
									<td><?php echo ($vo["id"]); ?></td>
									<td>
										<?php if($vo["pid"] == 0): echo ($vo["title"]); ?>
										<?php else: ?>
										    <?php echo str_repeat('&nbsp;&nbsp;&nbsp;&nbsp;',$vo['level']);?>∟<?php echo ($vo["title"]); endif; ?>
									</td>
									<td><?php echo ($vo["url"]); ?></td>
									<td><?php echo ($vo["sort"]); ?></td>
									<td><?php echo ($vo["target"]); ?></td>
									<td>
										<?php if($vo["status"] == 1): ?>是
									    <?php else: ?>
									        否<?php endif; ?>
									</td>
									<td>
									    <a href="<?php echo U('edit', array('id'=>$vo['id']));?>">编辑</a> &nbsp;&nbsp;
									    <a href="<?php echo U('del', array('id'=>$vo['id']));?>">删除</a>
									</td>
								</tr><?php endforeach; endif; else: echo "" ;endif; ?>
					    <?php else: ?>
							<tr><td colspan="11" align="center">没有找到相关数据！</td></tr><?php endif; ?>
					</tbody>
				</table>
			</div>
		</div>
	</div>

		</div>
		<div class="clearfix"></div>
	</div>

	<div class="footer">
		<div class="footer-inner">
			2013 &copy; by EasyWeb.
		</div>
		<div class="footer-tools">
			<span class="go-top">
				<i class="icon-angle-up"></i>
			</span>
		</div>
	</div>

<!--[if lt IE 9]>
<script src="/yinian/Public/assets/plugins/respond.min.js"></script>
<script src="/yinian/Public/assets/plugins/excanvas.min.js"></script> 
<![endif]-->   

<script src="/yinian/Public/assets/plugins/jquery-ui/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
<script src="/yinian/Public/assets/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="/yinian/Public/assets/plugins/bootstrap-hover-dropdown/twitter-bootstrap-hover-dropdown.min.js" type="text/javascript" ></script>
<script src="/yinian/Public/assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="/yinian/Public/assets/plugins/jquery.cookie.min.js" type="text/javascript"></script>
<script src="/yinian/Public/assets/plugins/uniform/jquery.uniform.min.js" type="text/javascript" ></script>
<script type="text/javascript" src="/yinian/Public/assets/plugins/data-tables/jquery.dataTables.js"></script>
<script type="text/javascript" src="/yinian/Public/assets/plugins/data-tables/DT_bootstrap.js"></script>
<script type="text/javascript" src="/yinian/Public/assets/plugins/bootstrap-modal/js/bootstrap-modalmanager.js"></script>
<script type="text/javascript" src="/yinian/Public/assets/plugins/bootstrap-modal/js/bootstrap-modal.js"></script>
<script type="text/javascript" src="/yinian/Public/assets/scripts/table-managed.js"></script> 
<script type="text/javascript" src="/yinian/Public/assets/scripts/app.js" type="text/javascript"></script>
<script type="text/javascript" src="/yinian/Public/assets/plugins/bootstrap-toastr/toastr.min.js"></script> 
<script type="text/javascript" src="/yinian/Public/assets/scripts/jquery.form.js"></script> 
<script type="text/javascript" src="/yinian/Public/assets/scripts/common.js"></script>

</body>
</html>